
<template>
  <div>
    home
    <button @click="getData">请求</button>
  </div>
</template>

<script setup>
import {getList} from "../api/user";
function getData(){
  let req = {
    name:'zz',
    age:18
  }
  getList(req).then(res=>{

  }).catch(err=>{

  })
}
</script>
